


<!DOCTYPE html>
<html id="htmlId">
<head>
  <title>Coverage Report > IteratorIOSequence</title>
  <style type="text/css">
    @import "../../css/coverage.css";
    @import "../../css/idea.min.css";
  </style>
  <script type="text/javascript" src="../../js/highlight.min.js"></script>
  <script type="text/javascript" src="../../js/highlightjs-line-numbers.min.js"></script>
</head>

<body>
<div class="content">
<div class="breadCrumbs">
Current scope:     <a href="../../index.html">all classes</a>
    <span class="separator">|</span>
    <a href="../index.html">com.it.io</a>
</div>

<h1>Coverage Summary for Class: IteratorIOSequence (com.it.io)</h1>

<table class="coverageStats">
<tr>
  <th class="name">Class</th>
<th class="coverageStat 
">
  Class, %
</th>
<th class="coverageStat 
">
  Method, %
</th>
<th class="coverageStat 
">
  Line, %
</th>
</tr>
<tr>
  <td class="name">IteratorIOSequence</td>
<td class="coverageStat">
  <span class="percent">
    100%
  </span>
  <span class="absValue">
    (1/1)
  </span>
</td>
<td class="coverageStat">
  <span class="percent">
    100%
  </span>
  <span class="absValue">
    (7/7)
  </span>
</td>
<td class="coverageStat">
  <span class="percent">
    100%
  </span>
  <span class="absValue">
    (9/9)
  </span>
</td>
</tr>

</table>

<br/>
<br/>


<pre>
<code class="sourceCode" id="sourceCode">&nbsp;package com.it.io;
&nbsp;
&nbsp;import java.util.Iterator;
&nbsp;import java.util.ArrayList;
&nbsp;import java.util.List;
&nbsp;
<b class="fc">&nbsp;public class IteratorIOSequence&lt;E&gt; extends AbstractIOSequence&lt;Iterator&lt;E&gt;, E&gt; {</b>
&nbsp;
&nbsp;	List&lt;E&gt; result;
&nbsp;
&nbsp;	@Override
&nbsp;	public void initInput(Iterator&lt;E&gt; input) {
<b class="fc">&nbsp;		this.input = input;</b>
&nbsp;	}
&nbsp;
&nbsp;	@Override
&nbsp;	public boolean hasInput() {
<b class="fc">&nbsp;		return input.hasNext();</b>
&nbsp;	}
&nbsp;
&nbsp;	@Override
&nbsp;	public E input() {
<b class="fc">&nbsp;		inputIndex++;</b>
<b class="fc">&nbsp;		return input.next();</b>
&nbsp;	}
&nbsp;
&nbsp;	@Override
&nbsp;	public void initOutput(int size) {
<b class="fc">&nbsp;		result = new ArrayList&lt;&gt;(size);</b>
&nbsp;	}
&nbsp;
&nbsp;	@Override
&nbsp;	public void output(E e) {
<b class="fc">&nbsp;		result.add(e);</b>
<b class="fc">&nbsp;		outputIndex++;</b>
&nbsp;	}
&nbsp;
&nbsp;	@Override
&nbsp;	public Iterator&lt;E&gt; finish() {
<b class="fc">&nbsp;		return result.iterator();</b>
&nbsp;	}
&nbsp;	
&nbsp;	
&nbsp;}
</code>
</pre>
</div>

<script type="text/javascript">
(function() {
    var msie = false, msie9 = false;
    /*@cc_on
      msie = true;
      @if (@_jscript_version >= 9)
        msie9 = true;
      @end
    @*/

    if (!msie || msie && msie9) {
      hljs.highlightAll()
      hljs.initLineNumbersOnLoad();
    }
})();
</script>

<div class="footer">
    
    <div style="float:right;">generated on 2023-07-04 12:48</div>
</div>
</body>
</html>
